//package com.gudaomai.wuye.core;
//
//import java.io.IOException;
//import java.io.PrintWriter;
//
//import javax.servlet.ServletException;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
//import org.apache.log4j.LogManager;
//import org.apache.log4j.Logger;
//import org.springframework.security.core.Authentication;
//import org.springframework.security.web.authentication.logout.SimpleUrlLogoutSuccessHandler;
//
//import com.gudaomai.wuye.common.CommonConstant;
//import com.gudaomai.wuye.entity.RetEntity;
//
//public class RestLogoutSuccessHandler extends SimpleUrlLogoutSuccessHandler {
//
//    private static final Logger LOGGER = LogManager.getLogger(RestLogoutSuccessHandler.class);
//    
//    @Override
//    public void onLogoutSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication)
//            throws IOException, ServletException {
//        LOGGER.info("logout success!");
//        RetEntity jsonResponse = new RetEntity();
//        jsonResponse.setRetCode(CommonConstant.RESULT_CODE_EXPECTATION_FAILED);
//        PrintWriter printWriter = response.getWriter();
//        printWriter.write(jsonResponse.toString());
//        printWriter.flush();
//        printWriter.close();
////        response.sendRedirect("/index.html");
//    }
//}
